
// MemMapViewDoc.h : interface of the CMemMapViewDoc class
//


#pragma once


class CMemMapViewDoc : public CDocument
{
protected: // create from serialization only
	CMemMapViewDoc();
	DECLARE_DYNCREATE(CMemMapViewDoc)

// Attributes
public:
	DWORD GetProcessID() const { return m_ProcessInfo.th32ProcessID; }
	const PROCESSENTRY32* GetProcessInfo() const { return &m_ProcessInfo; }

// Operations
public:
	void SetProcessInfo(PROCESSENTRY32* info);
	void SetCommitSizes(DWORD_PTR privateCommitted, DWORD_PTR totalCommitted);

// Overrides
public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);

// Implementation
public:
	virtual ~CMemMapViewDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	PROCESSENTRY32 m_ProcessInfo;
	DWORD_PTR m_PrivateCommitted, m_TotalCommitted;

// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()

	void OnStatusIndicatorThreads(CCmdUI* pCmdUI);
	void OnStatusIndicatorPrivateCommit(CCmdUI* pCmdUI);
	void OnStatusIndicatorTotalCommit(CCmdUI* pCmdUI);
	void OnStatusIndicatorWorkingSet(CCmdUI* pCmdUI);
	afx_msg void OnViewRefresh();
	afx_msg void OnUpdateFileSaveAs(CCmdUI *pCmdUI);
};


